#include"command.h"

int my_cd(char *pathname,const char* path,char*buf){
   // path is target_path (src)
   // pathname is current_path (dest)
   DIR* dir=opendir(path);
   if(!dir){
       perror("my_cd_opendir");
       return -1;
   }

   strcpy(buf, pathname);
   strcat(buf, "/");
   strcat(buf, path);

   return 0;
}

